home *** CD-ROM | disk | FTP | other *** search
/ PC World 2007 December / PCWorld_2007-12_cd.bin / domacnost a kancelar / autoit / autoit-v3-setup.exe / Examples / Helpfile / _WordDocClose.au3 < prev    next >
Text File  |  2007-09-08  |  382b  |  10 lines

  1. ; *******************************************************
  2. ; Example 1 - Create an empty word window, open an existing document,
  3. ;                close the document and quit.
  4. ; *******************************************************
  5. ;
  6. #include <Word.au3>
  7. $oWordApp = _WordCreate ("")
  8. $oDoc = _WordDocOpen ($oWordApp, @ScriptDir & "\Test.doc")
  9. _WordDocClose ($oDoc)
  10. _WordQuit ($oWordApp)